extends "../calxgx_1_1/calxgx_1_1.gd"
func _init():
	pass
func _extInit():
	._extInit()
	chaName = "阳" 
	lv = 4
	addSkillTxt("[color=#FFFF00][八卦纯阳术][/color]:[color=#FFCC22]将天地之间的阳之气凝气成刀，造成115%光系物理伤害后回馈给自身，恢复伤害100%的体力\n恢复后体力大于70%则再造成一次伤害[CD:18][/color]") 
	addCdSkill("cys",18)
	
	
func _castCdSkill(id):
	._castCdSkill(id)
	if id == "cys":
		var eff = sys.newEff("numHit", position, false, 1)
		eff.setText("八卦纯阳术", "#FF0099")
		eff.anim.set_speed_scale(0.2)
		typeHurtCha(aiCha,att.atk*1.15,Chara.HurtType.PHY,Chara.AtkType.SKILL)
		plusHp(att.atk)
		if att.hp/att.maxHp > 0.7:
			typeHurtCha(aiCha,att.atk*1.15,Chara.HurtType.PHY,Chara.AtkType.SKILL)